.wrapper{
  width: 90%;
  position: relative;
  height: 800px;
  margin-top: -0.1%;
  margin-left: 4%;
}
.carousel{
  margin-top: 7%;
}
.wrapper i{
  width: 50px;
  height: 50px;
  background-color: #f7f6f2;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  position: absolute;
  border-radius: 50%;
  top:40%;
  transform: translateY(-50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.23);
}

.wrapper i:first-child{
  left: -22px;
}

.wrapper i:last-child{
  right: -22px;
}


.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}


.carousel :where(.card, .img) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.carousel .card{
  scroll-snap-align: start;
  list-style: none;
  height: 342px;
  
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding-bottom: 15px;
  cursor: pointer;

}

.carousel.no-transition{
  scroll-behavior: auto;
}

.carousel.dragging{
  scroll-snap-type:none;
  scroll-behavior: auto;
}

.carousel.dragging .card{
  cursor: grab;
  user-select: none;
}

.card .img{
  width: 250px;
  height: 300px;
  
  border-radius: 0%;
}

.card .img img{
  width: 250px;
  height: 300px;
  object-fit: cover;
  border-radius: 0%;
  border: 4px solid rgba(0, 0, 0, 0)
}

.card h2{
  font-family: 500;
  font-size: 1.56rem;
  margin: 30px 0 5px;
}

.card span{
  font-size: 1.31rem;
}


@media (max-width: 368px) {
}
            
@media screen and (max-width: 768px) {

  .wrapper .carousel {
    grid-auto-columns: 100%;
  }
  .wrapper{
   margin-top: 32rem;
  }
  .wrapper .classcard{
    margin-left: 5%;
  }
}